const state = {
  form: {
    frid: '',
    frname: '',
    bidder: ''
  }
}

const getters = {
  cloneForm(state) {
    return state.form;
  }
}

const mutations = {
  setState(state, form) {
    console.log(form)
    state.cloneForm = form;
  }
}

const actions = {
    asyncSetForm(context,form){
        context.commit('setState',form)
    }
}

export default {
  namespaced: true, //用于在全局引用此文件里的方法时标识这一个的文件名
  state,
  getters,
  mutations,
  actions
}